package com.xl.singleinstance;

/**
 * @ClassDescription:
 * @JdkVersion: 1.8
 * @Author: lei·xie
 * @Created: 2024/3/15 0015 16:39
 */
public class Test {
    public static void main(String[] args) {
        A a = A.getInstance();
        A a1 = A.getInstance();
        A a2 = A.getInstance();
        System.out.println(a);
        System.out.println(a1);
        System.out.println(a2);

        A3 a3 = new A3();
        a3.print();
        System.out.println(a3);
    }
}
